#!/usr/bin/env python
# coding:UTF-8
from logs import log
import time,urllib2
def timestamp():
    return int(time.mktime(time.strptime(time.strftime('%Y-%m-%d %H:%M:%S'),"%Y-%m-%d %H:%M:%S")))


def GetAllFile(proid):
    Host = '192.168.1.233'
    Token = 'hz4FLehi6vFRwQN79ZBu'
    GitAddr = 'http://'+Host+'/api/v3/projects/'+str(proid)+'/repository/tree'+'?private_token='+Token
    log(GitAddr)
    res = urllib2.Request(GitAddr)
    req = urllib2.urlopen(res)
    Response = req.read()
    log(eval(Response))

